#!/bin/bash

echo "$USER"

echo `id -u`

echo `whoami`

echo "$UID"

 
export username=''  
export password=''  
  
getUsername() {  
    read -p "username (default: `echo $USER`): " username  
  
    if test -z "$username"; then  
        username=$USER  
    fi  
    export username  
}  
  
getPassword() {  
    read -s -p "password: " password  
    export password  
}  
  
getUsername  
getPassword  
  
echo ""  
echo $username  
echo $password